#! /bin/sh

name=libxpm
version=3.5.17
revision=1
tarball_url="https://www.x.org/archive/individual/lib/libXpm-${version}.tar.gz"
tarball_blake2b="0acc342fb0aebad04a2d68f60106ad8f52910b2ca65d402bfda09e5914ab92b2b2b9d57680bbb6c6f1c8767971e9cffc1315337f6645fb61940a9cb5ccdf80c0"
hostdeps="gcc pkg-config"
deps="core-libs libxext libxt"

prepare() {
    autotools_recursive_regen
}

configure() {
    autotools_configure
}

build() {
    make -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" make install

    post_package_strip
}
